package com.xqboss.chain.domain.chain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.xqboss.chain.enums.UpChainStatusEnum;
import com.xqboss.chain.enums.UpChainTypeEnum;
import com.xqboss.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 藏品上链表
 * </p>
 *
 * @author ct
 * @since 2022-12-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="UpUpdateChain对象", description="藏品上链表")
public class UpUpdateChain extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户藏品ID")
    private Long userNftId;
    /**
     * nft类型
     */
    @ApiModelProperty("藏品类型")
    private Integer nftType;
    /**
     * 发送者用户
     */
    @ApiModelProperty("发送者")
    private Long fromUserId;
    /**
     * 接收者用户
     */
    @ApiModelProperty("接收者")
    private Long toUserId;
    /**
     * 合约地址
     */
    @ApiModelProperty("合约地址")
    private String contract;
    /**
     * 藏品ID
     */
    @ApiModelProperty("藏品ID")
    private Long nftId;
    /**
     * 藏品编号ID
     */
    @ApiModelProperty("藏品编号ID")
    private Long nftNumberId;
    /**
     * 藏品编号值
     */
    @ApiModelProperty("藏品编号值")
    private Long numberValue;
    /**
     * 交易类型
     */
    @ApiModelProperty("交易类型")
    private UpChainTypeEnum txType;
    /**
     * 上链状态
     */
    @ApiModelProperty("交易状态")
    private UpChainStatusEnum txStatus;
    /**
     * 交易hash
     */
    @ApiModelProperty("交易HASH")
    private String txHash;

    @TableLogic
    private Boolean delFlag;

}
